<?PHP
session_start();
require('../basicInfo/user.php');
require('question.php');
$_SESSION['currentPage'] = "questionbank";
if(isset($_SESSION['userinfo'])) {
   $userinfo=unserialize($_SESSION['userinfo']);
}else {
  header("Location:signin.php");
}
$subject1=$userinfo->getUserName();

$role = $userinfo->getRole();

if($role=='V'){
		header("Location: validatequestions.php");
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Debugger MMO</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-US" />

<style type="text/css"><!--
     #question_creator
    {
       float: left;
	   margin: 8px 4px;
       width: 496px;
       background-color: #FFEFD5;
       border: 3px solid #d5c8a4;
    }

    #creator_heading
    {
        width:496px;
        height:15px;
        margin-top:0px;
        background-color:#BC8F8F;
        font-family:Verdana;
        text-align:left;
        color: white;
        font-size:10px;
    }
    
 --></style>

<script language="javascript" type="text/javascript">
function changemsg() {
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("msg1").innerHTML="<b>&nbsp &nbsp Message successfully sent</b>";
    }
  
//xmlhttp.open("GET","mytext.txt",false);
xmlhttp.send();
}

function mailto() {
alert("This function has not been implemented yet");
}
</script>
<?PHP

function mailto() {
alert("This function has not been implemented yet");
return true;
}
?>

</head>
<body>
<?php include "../../layout/header.php"; ?>
<?php include "../../layout/navleft.php"; ?>
        <div id="content_small"><div class="container_brown">
                    <div id="creator_heading">VALIDATE QUESTION </div>
                    <div id="para1"> Sorry! You are not entitled to validate any questions. <br />
					If you wish to become a validator, please click on the button below to send an
					automatically typed message to Admin.<br />
					The Admin can approve / deny your request depending on your ranking and other credits.
					</div>
					<BR><BR><BR>
					<form action="" method="POST">
					<center><input type="submit" id="button1" name="reqadmin" value="Request to be a Validator(Not implemented yet...)" /></center>
					</form>
					
		</div></div>
<?php include "../../layout/navright.php"; ?>
<?php include "../../layout/footer.php"; ?>
</body>
</html>